<?php
    session_start();
    if($_SESSION['uid']==null)
    {
        return 0;
    }
?>